package com.xujie.sportsmeeting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 排名变化VO
 */
@Data
@Schema(description = "排名变化信息")
public class RankingChangeVO {

    @Schema(description = "时间点")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timePoint;

    @Schema(description = "运动员姓名")
    private String athleteName;

    @Schema(description = "当前排名")
    private Integer currentRanking;

    @Schema(description = "前一排名")
    private Integer previousRanking;

    @Schema(description = "排名变化")
    private Integer rankingChange;

    @Schema(description = "变化类型")
    private String changeType; // up, down, new, same

    @Schema(description = "成绩值")
    private String scoreValue;

    @Schema(description = "变化描述")
    private String changeDescription;
}
